package cn.edu.gench.learn.day6;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/4/8.
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("开始输入....");
        while(true){
            String out=sc.nextLine();
            if (out.equals("exit"))
                break;
            CommandParser commandParser = new CommandParser();
            if (commandParser.parse(out)){
                System.out.println("命令正确");
            }else{
                System.out.println("命令错误");
            }
        }

    }
}
